package com.weibo.action;

import weibo4j.http.AccessToken;

/**
 * 保存token，并实现一些与token相关的操作
 */
public class OAuthAction {

	private static OAuthAction instance;
	private AccessToken token;
	private OAuthAction(){}
	public static OAuthAction getInstance(){
		if(instance==null)instance=new OAuthAction();
		return instance;
	}
	public void setAccessToken(AccessToken token){
		this.token=token;
	}
	public AccessToken getAccessToken(){
		return this.token;
	}
}
